import java.util.*;

/**
 * @author LKQ
 * @date 2022/3/15 9:54
 * @description 暴力
 */
public class Solution {
    public static void main(String[] args) {

    }
    public boolean isCovered(int[][] ranges, int left, int right) {
        boolean[] cover = new boolean[51];
        for(int[] ran: ranges) {
            for (int i = ran[0]; i <= ran[1]; i++) {
                cover[i] = true;
            }
        }
        for (int i = left; i <= right; i++) {
            if (!cover[i]) {
                return false;
            }
        }
        return true;
    }
}
